//
//  ILDeviceProperty.h
//  Pods
//
//  Created by 方耀 on 2022/11/1.
//

#ifndef ILDeviceProperty_h
#define ILDeviceProperty_h
#import <Foundation/Foundation.h>

typedef void(^ILDeviceCompletionBlock)(NSDictionary<NSString *,id> * _Nullable resp, ILException* _Nullable e);

@interface ILDeviceProperty : NSObject

///设置物模型
///did 设备deviceid
///params 参数
///isLocal  是否本地设备  YES 直连设备 tcp  NO 走阿里物模型
+(void)setDeviceProperties:(NSString *_Nullable) did params:(NSDictionary *_Nullable)parmas local:(BOOL)isLocal callBack:(ILDeviceCompletionBlock _Nullable )block;

///获取物模型
///did 设备deviceid
///key 物模型key
///isLocal  是否本地设备  YES 直连设备 tcp  NO 走阿里物模型
+(void)getDeviceProperties:(NSString *_Nullable) did key:(NSString *_Nullable)key local:(BOOL)isLocal callBack:(ILDeviceCompletionBlock _Nullable )block;

///服务
///params identifier 标识符
///parmas  参数
+(void)sendDeviceServerRequest:(NSString *_Nullable) did identifier:(NSString *_Nullable) identifier parmas:(NSDictionary *_Nullable)parmas local:(BOOL)isLocal callBack:(ILDeviceCompletionBlock _Nullable )block;

+(void)doGetMethod:(NSString *_Nullable)url withApiVersion:(NSString *_Nullable)apiVersion withJson:(NSDictionary *_Nullable)json withBlock:(ILDeviceCompletionBlock _Nonnull )block;
@end


#endif /* ILDeviceProperty_h */
